home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
bbsutil
/
bsrc_250.zip
/
DATA.C
< prev
next >
Wrap
Text File
|
1991-09-15
|
36KB
|
766 lines
/*--------------------------------------------------------------------------*/
/* */
/* */
/* ------------ Bit-Bucket Software, Co. */
/* \ 10001101 / Writers and Distributors of */
/* \ 011110 / Freely Available<tm> Software. */
/* \ 1011 / */
/* ------ */
/* */
/* (C) Copyright 1987-91, Bit Bucket Software Co., a Delaware Corporation. */
/* */
/* */
/* This module was originally written by Bob Hartman */
/* */
/* */
/* BinkleyTerm Data */
/* */
/* */
/* For complete details of the licensing restrictions, please refer */
/* to the License agreement, which is published in its entirety in */
/* the MAKEFILE and BT.C, and also contained in the file LICENSE.250. */
/* */
/* USE OF THIS FILE IS SUBJECT TO THE RESTRICTIONS CONTAINED IN THE */
/* BINKLEYTERM LICENSING AGREEMENT. IF YOU DO NOT FIND THE TEXT OF */
/* THIS AGREEMENT IN ANY OF THE AFOREMENTIONED FILES, OR IF YOU DO */
/* NOT HAVE THESE FILES, YOU SHOULD IMMEDIATELY CONTACT BIT BUCKET */
/* SOFTWARE CO. AT ONE OF THE ADDRESSES LISTED BELOW. IN NO EVENT */
/* SHOULD YOU PROCEED TO USE THIS FILE WITHOUT HAVING ACCEPTED THE */
/* TERMS OF THE BINKLEYTERM LICENSING AGREEMENT, OR SUCH OTHER */
/* AGREEMENT AS YOU ARE ABLE TO REACH WITH BIT BUCKET SOFTWARE, CO. */
/* */
/* */
/* You can contact Bit Bucket Software Co. at any one of the following */
/* addresses: */
/* */
/* Bit Bucket Software Co. FidoNet 1:104/501, 1:343/491 */
/* P.O. Box 460398 AlterNet 7:491/0 */
/* Aurora, CO 80046 BBS-Net 86:2030/1 */
/* Internet f491.n343.z1.fidonet.org */
/* */
/* Please feel free to contact us at any time to share your comments about */
/* our software and/or licensing policies. */
/* */
/*--------------------------------------------------------------------------*/
/* Include this file before any other includes or defines! */
#include "includes.h"
unsigned int BINK_MAJVERSION = PRDCT_MAJOR;
unsigned int BINK_MINVERSION = PRDCT_MINOR;
#ifdef PRIVATE_IDAHO
#define ALPHA_DATE ""
#else
#define ALPHA_DATE ""
#endif
#ifndef OS_2
char *ANNOUNCE = PRDCT_PRTY " Version " PRDCT_VRSN ALPHA_DATE;
char *xfer_id = PRD_SH_PRTY " " PRDCT_VRSN;
#else
char *ANNOUNCE = "BinkleyTerm-OS/2 Ver. " PRDCT_VRSN ALPHA_DATE;
char *xfer_id = "BinkOS2 " PRDCT_VRSN;
#endif
int SB_COLS_M_1 = 0;
int SB_ROW_HOLD = 6;
int SB_ROW_STATUS = 0;
int SB_ROWS_M_1 = 0;
int SB_ROWS_M_2 = 0;
int SB_ROWS_M_15 = 0;
#ifdef MILQ
int SendPaths = 0;
int UsePaths = 0;
#endif
struct _key_fnc_hdr TrmnlKeyFncHdr;
struct _key_fnc_hdr UnattendedKeyFncHdr;
char **msgtxt;
struct _lang_hdr *LangHdr = NULL;
char *mtext [] = {
"Jan", "Feb", "Mar", "Apr", "May", "Jun",
"Jul", "Aug", "Sep", "Oct", "Nov", "Dec"
};
struct baud_str btypes[] = {
{300, BAUD_300},
{1200, BAUD_1200},
{2400, BAUD_2400},
{4800, BAUD_4800},
{9600, BAUD_9600},
{19200, BAUD_19200},
{0x9600, BAUD_38400}, /* 0x9600 = 38400 */
{0, 0}
};
struct baud_str max_baud = {2400, BAUD_2400}; /* Max baud value */
struct parse_list far DOS_commands[] = {
{7, "noforce"},
{4, "mail"},
{5, "share"},
{5, "dynam"},
{10, "unattended"},
{6, "config"},
{4, "poll"},
{0, 0}
};
int locate_x, locate_y, port_ptr, original_port;
int TaskNumber = 0; /* unique user-specified id */
int share = 0; /* if 1, don't uninit FOSSIL */
int no_sharing = 0; /* if 1, no File Sharing calls*/
int no_size = 0;
int first_block; /* 1 = first block/Matrix
* packet */
int serial = -1; /* -1 is unregistered */
int fstblklen = 0; /* Start Zmodem packet size */
int net_params = 0;
int un_attended = 0;
int command_line_un;
int overwrite = 0;
int redo_dynam = 0;
int fullscreen = 1;
int do_screen_blank = 0;
int screen_blank = 0;
int blank_on_key = 1;
unsigned int blank_time = 6000;
unsigned BBStimeout = 2000;
int loglevel = 6;
int debugging_log = 0;
int gong_allowed = 0;
int MAXport = 2;
int pvtnet = -1;
int poll_tries = 500; /* How many tries in a poll? */
int ring_tries = 4; /* How many rings before fail*/
int com_port = 0; /* Default com port = COM1 */
int buftmo = 6000; /* 60 second timeout */
unsigned int comm_bits = BITS_8; /* Default data bits = 8 */
unsigned int parity = NO_PARITY; /* Default parity = NONE */
unsigned int stop_bits = STOP_1; /* Default stop bits = 1 */
unsigned int carrier_mask = 0x80; /* Default carrier bit = 80H */
unsigned int handshake_mask = USE_XON | USE_CTS;/* Force CTS/RTS flow control*/
int baud; /* Index to baud table */
struct baud_str cur_baud; /* Current baud rate */
char *modem_init = NULL; /* Used to init modem */
char *term_init = NULL; /* Used to init modem in terminal mode */
char *modem_busy = NULL; /* Take modem offhook */
char *predial = NULL; /* Pre-dial setup */
char *postdial = NULL; /* Post-dial cleanup */
char *normprefix;
char *normsuffix;
char *dial_setup;
char *init_setup;
unsigned int matrix_mask = TAKE_REQ; /* Netmail session abilities */
char *system_name = NULL; /* Name of system to send */
char *sysop = NULL; /* Name of sysop for yoohoo */
char *netmail = NULL;